import pytest

from selenium import webdriver
from Page.page1 import Page1
from Page.Page2 import Page2
from Page.page3 import Page3
from Page.page4 import Page4


@pytest.fixture
def driver():
    driver = webdriver.Edge()
    driver.maximize_window()
    yield driver
    driver.quit()


def test_A3mall_001(driver):
    po1 = Page1(driver)

    po1.test_A3mall_001()


def test_A3mall_002(driver):
    po = Page2(driver)
    po.test_A3mall_002()

def test_A3mall_003(driver):
    po = Page3(driver)
    po.test_A3mall_002()
def test_A3mall_004(driver):
    po=Page4(driver)
    po.test_A3mall_001()
    po.shouye()
    po.shuruk()
    po.sousuobtn()
    po.shangpin()
    po.gouwuche()
if __name__ == '__main__':
    pytest.main()
